# File: stop.py
# Description: Connects to AS and stops the named server
# Usage: wlst stop.py user pass server
import sys

as_url='${ANT_AS_URL}'
user=sys.argv[1]
password=sys.argv[2]
ms_name=sys.argv[3]
connect(user, password, as_url)

shutdown(ms_name,'Server', force='true')